package com.liushuai.eas.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.liushuai.eas.mapper.CourseMapper;
import com.liushuai.eas.pojo.Category;
import com.liushuai.eas.pojo.Course;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

@Service
public class CourseImp implements CourseMapper {

    @Resource
    private CourseMapper courseMapper;

    @Override
    public int insert(Course entity) {
        return courseMapper.insert(entity);
    }

    @Override
    public int deleteById(Serializable id) {
        return courseMapper.deleteById(id);
    }

    @Override
    public int deleteById(Course entity) {
        return courseMapper.deleteById(entity);
    }

    @Override
    public int deleteByMap(Map<String, Object> columnMap) {
        return 0;
    }

    @Override
    public int delete(Wrapper<Course> queryWrapper) {
        return 0;
    }

    @Override
    public int deleteBatchIds(Collection<?> idList) {
        return 0;
    }

    @Override
    public int updateById(Course entity) {
        return courseMapper.updateById(entity);
    }

    @Override
    public int update(Course entity, Wrapper<Course> updateWrapper) {
        return 0;
    }

    @Override
    public Course selectById(Serializable id) {
        return courseMapper.selectById(id);
    }

    @Override
    public List<Course> selectBatchIds(Collection<? extends Serializable> idList) {
        return null;
    }

    @Override
    public List<Course> selectByMap(Map<String, Object> columnMap) {
        return null;
    }

    @Override
    public Course selectOne(Wrapper<Course> queryWrapper) {
        return courseMapper.selectOne(queryWrapper);
    }

    @Override
    public Long selectCount(Wrapper<Course> queryWrapper) {
        return null;
    }

    @Override
    public List<Course> selectList(Wrapper<Course> queryWrapper) {
        return courseMapper.selectList(queryWrapper);
    }

    @Override
    public List<Map<String, Object>> selectMaps(Wrapper<Course> queryWrapper) {
        return null;
    }

    @Override
    public List<Object> selectObjs(Wrapper<Course> queryWrapper) {
        return null;
    }

    @Override
    public <P extends IPage<Course>> P selectPage(P page, Wrapper<Course> queryWrapper) {
        return courseMapper.selectPage(page, queryWrapper);
    }

    @Override
    public <P extends IPage<Map<String, Object>>> P selectMapsPage(P page, Wrapper<Course> queryWrapper) {
        return null;
    }

    @Override
    public List<Course> queryCourseList(int pageBegin, int pageEnd) {
        return courseMapper.queryCourseList(pageBegin,pageEnd);
    }

    @Override
    public List<Course> queryCourseListBySearch(int pageBegin, int pageEnd, String search) {
        return courseMapper.queryCourseListBySearch(pageBegin,pageEnd,search);
    }

    @Override
    public int queryTotal() {
        return courseMapper.queryTotal();
    }

    @Override
    public int queryTotalBySearch(String search) {
        return courseMapper.queryTotalBySearch(search);
    }

    @Override
    public Course selectOne(int id) {
        return courseMapper.selectOne(id);
    }
}
